<?php
/*
 * etc:用户基本模型层
 * author:deepe.xiao
 */

namespace app\models\Project_1_0;
use Core\Model;


class User extends Model{


    /**
     * 查询用户 根据用户ID
     * @param $user_id
     * @return mixed
     */
	function searchUser( $user , $pass  ){
		$sql = "select * from t_user where Name = '$user' and password='$pass' limit 1 ";
        $result = $this->db->getRow( $sql );
		return $result;
	}






}